package com.deep.deepenterpise.common.gas;

import lombok.Getter;

/**
 * @author xyz
 * @version 1.0
 * @title DrBottleTypeEnum
 * @description
 * @create 2024/5/20 16:18
 */
@Getter
public enum DrBottleTypeEnum {
    // 充装站入库
    FILLING_IN("filling_in"),
    // 充装站出库
    FILLING_OUT("filling_out"),
    // 门店入库
    STORE_IN("store_in"),
    // 门店出库
    STORE_OUT("store_out"),

    // 充装站出库
    RECEIVE_BOTTLE_SHOP("drReceiveBottleShop"),
    // 充装站入库
    RETURN_BOTTLE("drReturnBottle"),
    // 门店出库
    RECEIVE_BOTTLE_WORKER("drReceiveBottleWorker"),
    // 门店入库
    RETURN_GAS_WORKER_BOTTLE("drReturnGasWorkerBottle"),
    ;

    private final String drType;

    DrBottleTypeEnum(String drType) {
        this.drType = drType;
    }


    public boolean compare(String type) {
        return this.drType.equals(type);
    }

    public boolean compare(DrBottleTypeEnum drBottleTypeEnum) {
        return this.compare(drBottleTypeEnum.getDrType());
    }
}
